﻿using MusicExplorer.Model;
using MusicExplorer.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MusicExplorer.Common
{
    public sealed class NavigationObject
    {
        private readonly ViewModelBase m_parent;
        private readonly Entity m_entity;
        private readonly Model.Repository m_repository;

        public NavigationObject(ViewModelBase parent, Entity entity)
        {
            m_parent = parent;
            m_entity = entity;
        }

        public NavigationObject(ViewModelBase parent, Entity entity, Model.Repository repository)
        {
            m_parent = parent;
            m_entity = entity;
            m_repository = repository;
        }

        public ViewModelBase Parent { get { return m_parent; } }
        public Entity Entity { get { return m_entity; } }
        public Model.Repository Repository { get { return m_repository; } }
    }
}
